﻿using Aurora.Discovery.HttpClient.Abstractions;
using Discovery.HttpClient.Consul;
using Discovery.HttpClient.Consul.Options;

namespace Aurora.Discovery.HttpClient.Nacos;

/// <summary>
/// 扩展包
/// </summary>
public static class NacosDiscoveryExtension
{
    public static void UseNacosDiscovery(this DiscoveryOptions options, Action<NacosDiscoveryOptions> configure)
    {
        if (configure == null) throw new ArgumentNullException(nameof(configure));
        options.RegisterExtension(new NacosDiscoveryOptionsExtension(configure));
    }
}